﻿@model EnetaMvc.Web.Models.RegisterModel
@{
    Layout = null;    
}

@functions {
	public string ReturnErrorClass(string field)
	{
		var modelState = this.ViewContext.ViewData.ModelState;
		if (modelState.IsValidField(field))
			return string.Empty;

		return "failed-info";
	}
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Tere tulemast! | Microsoft Eneta</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link type="text/css" rel="stylesheet" href="@Url.Content("~/Content/Site.css")" />
<script type="text/javascript" src="@Url.Content("~/Scripts/jquery-1.3.2.min.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Scripts/main.js")"></script>
<!--[if lt IE 7]><link rel="stylesheet" type="text/css" href="css/ie6.css" media="screen"/><![endif]-->
</head>
<body class="inner-page helper funnel">
<div id="pagewidth">
	<div class="pagewidth-right">
		<div class="pagewidth-left">
			<!--main start-->
			<div id="main" class="inner-6">
				<!--header start-->
				<div id="header">
					<!--header-main start-->
					<div class="header-main">
						<!-- user-profile placeholder -->
						<h1 class="logo">Microsoft Eneta</h1>
						<!-- header-txt placeholder -->
					</div>
					<!-- navigation-box placeholder -->
				</div>
				<!--header end-||-content-area start-->
				<div id="content-area">
					<!--content start-->
					<div id="content" class="info-page"> <span class="content-top">&nbsp;</span>
						<!--content-main start-->
						<div class="content-main">
							<!--content-txt start-->
							<div class="content-txt">
								<!--blog-head start-->
								<div class="blog-head">
									<h2>@Resources.EnetaMvc.Welcome!</h2>
								</div>
								<!--blog-head end-||-content-info-area start-->
								<div class="content-info-area">
									
									@if (!this.ViewContext.ViewData.ModelState.IsValid)
									{ 
										<!--slide-box warning start-->
										<div class="slide-box warning">
											<div class="slide-box-center">
												<div class="slide-box-bottom"> <a class="close" href="#">@Resources.EnetaMvc.Close</a>
													<div>
														<p>@Resources.EnetaMvc.PleaseFixErrors</p>
													</div>
												</div>
											</div>
										</div>
										<!--slide-box warning end-->
									}
									

									<p>@Resources.EnetaMvc.InsertUserNameAndPassword</p>
									<div class="enter-information">
										@using (Html.BeginForm())
										{ 
											<fieldset>
											<!--input-holder start-->
											<div class="input-holder profile">
												<!--info-row start-->
												<div class="info-row @this.ReturnErrorClass("UserName")">
													<div class="error-message">@Html.ValidationMessageFor(m => m.UserName)</div>
													<div class="title">
														<h5>@Resources.EnetaMvc.UserName</h5>
													</div>
													<div class="error-note"> <span>*</span> </div>
													<div class="information-main">
														<input class="text-go" type="text" name="UserName" value="@Model.UserName" />
													</div>
												</div>
												<!--info-row end-||-info-row start-->
												<div class="info-row @this.ReturnErrorClass("Email")">													
													<div class="error-message">@Html.ValidationMessageFor(m => m.Email)</div>
													<div class="title">
														<h5>@Resources.EnetaMvc.EmailAddress</h5>
													</div>
													<div class="error-note"> <span>*</span> </div>
													<div class="information-main">
														<input class="text-go" type="text" name="Email" value="@Model.Email" />
													</div>
												</div>
												<!--info-row end-->
											</div>
											<!--input-holder end-->
											<div class="submit">
												<input type="submit" value="Salvesta"/>
											</div>
											<a class="loobu" href="@Url.Content("~/")">@Resources.EnetaMvc.Cancel</a>
											</fieldset>
										}
										@*<div class="slide-box">
											<div class="slide-box-center">
												<div class="slide-box-bottom"> <a class="close" href="#">sulge</a>
													<div>
														<p><a href="#">Täida profiil lõpuni</a> ja osale <strong>3000-kroonise koolituse</strong> loosimisel!</p>
													</div>
												</div>
											</div>
										</div>*@
									</div>
								</div>
								<!--content-info-area end-->
							</div>
							<!--content-txt end-->
						</div>
						<!--content-main end-->
						<span class="content-bottom">&nbsp;</span> </div>
					<!--content end-->
				</div>
				<!--content-area end-->
			</div>
			<!--main end-->
		</div>
	</div>
</div>
</body>
</html>

